import useLotNewsLive from "@/components/NewsLive/composables/useLotNewsLive";

const useLckNum = defineStore("useLckNum", () => {
  const refreshing = ref(false);
  const { fetchDataByType, resetNewsLive } = useLotNewsLive();
  const onRefresh = () => {
    resetNewsLive();
    fetchDataByType(1);
    refreshing.value = false;
  };

  return {
    refreshing,
    onRefresh
  };
});
export const useLckNumRefs = () => storeToRefs(useLckNum());
export default useLckNum;
